package cn.qingxuntech.console.api

import cn.qingxuntech.console.model.request.FuncLogRequest
import com.dtflys.forest.annotation.JSONBody
import com.dtflys.forest.annotation.Post
import com.dtflys.forest.annotation.Var
import com.dtflys.forest.backend.httpclient.HttpClient
import org.springframework.stereotype.Repository

@Repository
interface ServerApiClient {

    @Post(url = "\${url}/qx/func/logSwitch")
    @HttpClient
    fun pushLogRecord(@Var("url") url: String?, @JSONBody funcLogRequest: FuncLogRequest)
}